<?php
// 用户控制器
class RecommendAction extends UserAction {
    //魔术方法
    public function __construct(){
        parent::__construct();

    }
    //推荐二维码
    public function index(){
        $memberinfo=$this->getMemberInfo();
        $host_url=$url='HTTP://'.$_SERVER['HTTP_HOST'];
        $data=$host_url.U('wap/index/index',array('member_card'=>$memberinfo['member_card']));
        $water_url=".".$memberinfo['member_logo'];
        $recommend_qr=$this->get_qrcode($data,$water_url,$level='H',$size='8');
        $this->assign('recommend_qr',$recommend_qr);
        $this->display();
    }

    //浏览量
    public function pv(){
        
    }
}